package cn.com.cym.gamezao.enums;

import io.swagger.annotations.ApiModel;

/**
 * 字符串类型
 */
@ApiModel("字符串类型枚举")
public enum StrType {

    HTML("H","HTML"),
    JSON("J","JSON"),
    STRING("S","STRING");

    private String sign;

    private String value;

    private StrType(String sign,String value){
        this.sign=sign;
        this.value=value;
    }

    public String getSign(){
        return this.sign;
    }

    public String getValue(){
        return this.value;
    }

    public  static  StrType fromSign(String sign){
        for(StrType itemType:StrType.values()){
            if(itemType.getSign().equals(sign)){
                return itemType;
            }
        }
        return  null;
    }
}
